<?php
/**
 * Created by PhpStorm.
 * User: bendy
 * Date: 2018/3/18
 * Time: 19:30
 *
 *
 */
include ("../../config/config.php");
include ("../include/function.php");
if (!Login_Status()) {
    header("Location:login.php");
    exit;
}
$id=$_REQUEST['id'];
$db_link=DB_Link();
mysqli_query($db_link,"DELETE FROM video_list WHERE `ID` = '".$id."'");
$n=mysqli_affected_rows($db_link);
if ($n <> 1){
    $data['code']="99";
}else {
    $data['code'] = "100";
}
echo json_encode($data);
?>